package com.iwechat;

import java.text.ParseException;
import java.util.Date;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.time.DateFormatUtils;
import org.apache.commons.lang3.time.DateUtils;
import org.junit.Test;

public class Any {
    String                  regMobileStr  = "^1(34|35|36|37|38|39|50|51|57|58|59|82|83|84|87|88|47|705)[0-9]{7,8}$";
    String                  regUnicomStr  = "^1(30|31|32|45|55|56|76|85|86|709)[0-9]{7,8}$";
    String                  regTelecomStr = "^1(33|53|77|80|81|89|700)[0-9]{7,8}$";
    private ExecutorService excutor1      = new ThreadPoolExecutor(2, 4, 1, TimeUnit.MINUTES, new LinkedBlockingDeque<Runnable>(10));
    private ExecutorService excutor2      = Executors.newFixedThreadPool(5);

    @Test
    public void test() throws ParseException {
        String day = DateFormatUtils.format(new Date(), "yyyyMMdd");
        String time = StringUtils.leftPad("0909", 6, '0');
        Date d1 = DateUtils.parseDate(day + time, "yyyyMMddHHmmSS");
        System.out.println(day);
        System.out.println(time);
        System.out.println(d1);

        Integer.parseInt("12333");

    }

}
